32/57

# hdfs.root

Returns the HDFS root directory.

Usage

    hdfs.root()

Return Value

A data frame with the full path of the HDFS root directory

Usage Notes

The default HDFS root is set to /. Users to not have write privileges to this directory. To change the HDFS root to a path where you have write access, use the hdfs.setroot function.

See Also

hdfs.setroot

Example

This example identifies /user/oracle as the root directory of HDFS.

    R> hdfs.root()
    [1] "/user/oracle"